Skip to content

Add version to the schema#52

Merged
kumaranvram merged 1 commit intomasterfrom
add-schema-version
Apr 3, 2020
Merged

Add version to the schema#52
kumaranvram merged 1 commit intomasterfrom
add-schema-version

Conversation

@kumaranvram
Copy link
Copy Markdown
Contributor

Adding schema version to the generated code.

Copy link
Copy Markdown

@osamie osamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. But one thing, why do you need the Schema.java if you already have a APISchema.java that contains your schema version information?

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these 4 modules necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The APISchema.java is the template for generating the all the classes in a single file. The Schema.java is will generate the API information into a separate file when the schema is generated in a granular mode.

Removing the unnecessary imports.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kumaranvram kumaranvram requested a review from osamie April 3, 2020 14:04
Copy link
Copy Markdown

@osamie osamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Other changes:
- Bump up the JDK version for CI to pass
- Bump up the bundler version for CI to pass
Comment thread Rakefile
GraphQLSchema.new(Support::Schema.introspection_result),
package_name: 'com.shopify.graphql.support',
nest_under: 'Generated',
version: '2020-01',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be hardcoded?

@kumaranvram kumaranvram merged commit e65bafc into master Apr 3, 2020
@cocoahero cocoahero deleted the add-schema-version branch January 29, 2025 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants